package com.spddr.pmos.jpa;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import cn.seqdata.jpa.AbstractPersistable;

@Entity
@Table(name = "unit_nhq")
public class UnitNhq extends AbstractPersistable<UnitNhqId> {
	private static final long serialVersionUID = 1L;

	private Double flux;

	public UnitNhq() {
	}

	public UnitNhq(long unit, BigDecimal dropHeight, BigDecimal power) {
		setId(new UnitNhqId(unit, dropHeight, power));
	}

	@Column(name = "flux")
	public Double getFlux() {
		return this.flux;
	}

	public void setFlux(Double flux) {
		this.flux = flux;
	}
}